/*
 * @author: Gene
 * @age: 永远18岁的美少年
 * @Email：: yangjianyun@58.com
 * @Date: 2021-12-02 21:04:32
 * @LastEditTime: 2021-12-02 22:32:23
 * @description: 
 */
type LastChar<T, Prev = T> = T extends `${infer L}${infer R}`
  ? LastChar<R, L>
  : Prev;
type A = LastChar<"BFE">; // 'E'
type B = LastChar<"dev">; // 'v'
type C = LastChar<"">; // never
export {};
()=>{}
(a)=>{}
